<?php
/* ========== ########## ========== ########## ========== ########## ========== */
/*                                                                              */
/*   WHMCS v4.1.2 NULLED R4 by FLIPMODE  [ BAD SYNTAX ]                         */
/*                                                                              */
/*                             INTERNAL BAD SYNTAX NULLED VERSION: 2.5.9.6 R4   */
/*                                                                              */
/*   ALL files have been analysed, cleaned and nulled of:                       */
/*     - Call Backs  (100%)                                                     */
/*     - Link Backs (95%)                                                       */
/*     - Licensing  (100%)                                                      */
/*     - Remote Links + URL's                                                   */
/*                                                                              */
/*   WHMCS v4.1.2 RELEASED: 4th November 2009                                   */
/*    -> FIRST v4.1.2 NULL R1: 19th November 2009                               */
/*    -> UPDATED v4.1.2 NULL R4: 27th November 2009                             */
/*                                                                              */
/*   TESTING + VERIFICATION::                                                   */
/*     Files Cleaned, Nulled, Checked, Verified By:                             */
/*      -> FLIPMODE!                                                            */
/*     Decoded By:                                                              */
/*      -> FLIPMODE! + Unknown Decoder                                          */
/*     Tested By:                                                               */
/*      -> FLIPMODE!, LeetWolf, and 12 Anonymous Users...                       */
/*     WHMCS 4.1.2 Supplied By:                                                 */
/*      -> WHM CompleteShit Coder @ WHMCS.com                                   */
/*                                                                              */
/*                                                                              */
/*   IMPORTANT NOTE::                                                           */
/*   PLEASE NOTE THIS IS FOR TRIAL PURPOSES ONLY!                               */
/*                          LIKE IT? THEN BUY IT!                               */
/*                                                                              */
/* ========== ########## ========== ########## ========== ########## ========== */


require '../dbconnect.php';
require '../includes/functions.php';
require '../includes/adminfunctions.php';
$aInt = new adminInterface ('View Integration Code');
$aInt->title = 'Integration Code';
$aInt->sidebar = 'utilities';
$aInt->icon = 'integrationcode';
$aInt->requiredFiles (array ('domainfunctions'));
$currency = getcurrency ();
$tlds = gettldlist ();
ob_start ();
echo '
<p>The following HTML code blocks can be added into your website to integrate with your system.</p>

<p><b> &raquo; Clients Login</b> - Add this code to a page on your site to display a clients login form to log clients into the Client Area</p>
<textarea rows="6" style="width:100%;"><form method="post" action="';
echo $CONFIG['SystemURL'];
echo '/dologin.php?goto=clientarea">
Email Address: <input type="text" name="username" size="50"><br>
Password: <input type="password" name="password" size="20"><br>
<input type="submit" value="Login"> 
</form></textarea>
<p><b> &raquo; Domain Availability Lookup</b> - Add this code to a page on your site to allow potential clients to perform domain checks directly from that page.</p>
<textarea r';
echo 'ows="10" style="width:100%;"><form action="';
echo $CONFIG['SystemURL'];
echo '/domainchecker.php" method="post">
<input type="hidden" name="direct" value="true"> 
Domain: <input type="text" name="domain" size="20"> ';
echo '<s';
echo 'elect name="ext">
';
foreach ($tlds as $tld)
{
	echo '' . '<option>' . $tld . '</option>
';
}

echo '</select>
<input type="submit" value="Go"> 
</form>
</textarea>
<p><b> &raquo; Domain Ordering</b> - Add this code to a page on your site to allow potential clients to go straight to the shopping cart with a domain entered.</p>
<textarea rows="10" style="width:100%;"><form action="';
echo $CONFIG['SystemURL'];
echo '/cart.php?a=add&domain=register" method="post">
Domain: <input type="text" name="sld" size="20"> ';
echo '<s';
echo 'elect name="tld">
';
foreach ($tlds as $tld)
{
	echo '' . '<option>' . $tld . '</option>
';
}

echo '</select>
<input type="submit" value="Go"> 
</form>
</textarea>
<p><b>&raquo; User Registration</b> - Add the following link to your website to link to a registration form which users can use to setup a client account on your system so they can enrol as an affiliate or submit support tickets.</p>
<textarea rows="2" style="width:100%;"><a href="';
echo $CONFIG['SystemURL'];
echo '/register.php">Click here to register with us</a></textarea>

';
$content = ob_get_contents ();
ob_end_clean ();
$aInt->content = $content;
$aInt->display ();
?>